<?php
/**
 * 查看员工的历史得分
 */
apf_require_controller("Abstract");
apf_require_class("Bll_Jx_Plan");
apf_require_class("Bll_Jx_Relation");
class Team_ShowUserScoreController extends AbstractController {

    public function handle_request() {
        $params = $this->request->get_parameters();
        $uid = $params['user_id'];
        $plan_bll = new Bll_Jx_Plan();
        $_where = array(
                'userId'=>$uid
                );
        $list = $plan_bll->find_performance($_where);

        $rel_bll = new Bll_Jx_Relation();
        $baseinfo = $rel_bll->get_user_info($uid);
        $this->request->set_attribute('baseinfo',$baseinfo);
        $this->request->set_attribute('list',$list);
        return 'Team_ShowUserScore';
    }
}